<template>
   <div class="content">
      <div class="price">
        ￥
        <span>{{ info.retailPrice }}</span>
        <span>
          价格
          <span style="text-decoration: line-through; font-size: 14px"
            >￥{{ info.counterPrice }}</span
          >起
        </span>
      </div>
      <div class="title">
        <span>{{ info.name }}</span>
        <span>{{ info.brief }}</span>
      </div>
    </div>
</template>

<script>
export default {
  name:'Content',
  props: ["info"],
  data(){
      return{

      }
  }
}
</script>

<style lang="less" scoped>
  .content {
    width: 95%;
    height: 140px;
    background-color: #fff;
    border-radius: 16px;
    margin: 12px auto;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    .price {
      margin-left: 20px;
      color: rgb(238, 74, 74);
      margin-top: 14px;
      span:nth-child(1) {
        font-size: 24px;
      }
      span:nth-child(2) {
        font-size: 14px;
        color: #888;
        margin-left: 12px;
      }
    }
    .title {
      margin-left: 20px;
      display: flex;
      flex-direction: column;
      text-align: left;
      span:nth-child(1) {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 8px;
      }
      span:nth-child(2) {
        font-size: 14px;
        color: #888;
        margin-bottom: 18px;
      }
    }
  }
</style>